<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://doc.hyperf.io
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
 */

use Hyperf\HttpServer\Router\Router as Route;
use App\Middleware\DriverMiddleware;
// 该 Group 下的所有路由都将应用配置的中间件
Route::any('/api/driver/login','Api\DriverController@login');
Route::any('/view', 'Api\IndexController@view');
Route::group(['middleware' => [DriverMiddleware::class]],function () {
      Route::any('/', 'Api\IndexController@index');
      Route::any('/api/driver/car_info', 'Api\DriverController@car_info');
      Route::any('/api/driver/image', 'Api\DriverController@image');
      Route::any('/api/driver/performan_map', 'Api\DriverController@performan_map');
      //司机订单相关
      Route::any('/api/driver/order/trade_hall', 'Api\DriverorderController@trade_hall');
      Route::any('/api/driver/order/driver_order', 'Api\DriverorderController@driver_order');
      Route::any('/api/driver/order/order_detail', 'Api\DriverorderController@order_detail');
      Route::any('/api/driver/order/remarks', 'Api\DriverorderController@remarks');
      Route::any('/api/driver/order/recommend', 'Api\DriverorderController@recommend');
      Route::any('/api/driver/order/rush', 'Api\DriverorderController@rush');
      Route::any('/api/driver/order/get_product', 'Api\DriverorderController@get_product');
      Route::any('/api/driver/order/company_send', 'Api\DriverorderController@company_send');
      Route::any('/api/driver/order/company_reject', 'Api\DriverorderController@company_reject');
    }
);